{extend name="common/base" /}
<!--title-->
{block name="titlekeyword"}
<title>{$content}</title>

{/block}
<!--代码主要内容-->
{block name="main"}
<h6>内容</h6>

<h6>代码</h6>
<pre>
	&lt;script language="javascript"&gt;
	window.onload = function () {  //先加载页面内容 再加载js
		function Person() {
			this.name = "abc";
			this.age = 90;
		}

		var p1 = new Person();
		var p2 = new Person();
		p2.name = "顺平";  //修改属性的方法
		window.alert(p1.name + " " + p2.name);
	}


&lt;/script&gt;

	 </pre> {/block}
<!--底部js 在这里是js的实际代码区-->
{block name="footjs"}
<script language="javascript">
	window.onload = function () {  //先加载页面内容 再加载js
		function Person() {
			this.name = "abc";
			this.age = 90;
		}

		var p1 = new Person();
		var p2 = new Person();
		p2.name = "顺平";
		window.alert(p1.name + " " + p2.name);
	}


</script> {/block}